﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Infrastructure.Attributes
{
    /// <summary>
    /// 修饰属性，以指示在此属性转为字典类型时生成的Key
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class KeyNameAttribute : Attribute
    {
        string _name;
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name"></param>
        public KeyNameAttribute(string name)
        {
            _name = name;
        }
        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            get { return _name; }
        }
    }
}
